tools: imximage: Fix the maximum DCD size for mx53/mx6
authorFabio Estevam <[email protected]>
Mon, 1 Sep 2014 12:56:23 +0000 (09:56 -0300)
committerStefano Babic <[email protected]>
Tue, 9 Sep 2014 14:23:00 +0000 (16:23 +0200)
commit021e79c85371d2d5882f2eb6c58233f016add52d
treed81b9289a12c8892d9f6454b141006b67f96fcda
parentdad08286eaa84779349fe4cec427e1e29beaffac
tools: imximage: Fix the maximum DCD size for mx53/mx6

According to mx53 and mx6 reference manuals:

"The maximum size of the DCD limited to 1768 bytes."

As each DCD entry consists of 8 bytes, we have a total of 1768 / 8 = 221, and
excluding the first entry, which is the header leads to 220 as the maximum
number for DCD size.

Reported-by: Jonas Karlsson <[email protected]>
Signed-off-by: Fabio Estevam <[email protected]>
Acked-by: Nitin Garg <[email protected]>
Acked-by: Nitin Garg <[email protected]>
tools/imximage.h